package com.dxy.dxyproduct.client;

import com.dxy.dxycommon.VO.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * junfeng 2018/11/12
 */
@FeignClient(name = "product")
public interface ProductClient {

    @RequestMapping("/hello")
    String productHello();

    @RequestMapping("/product/listProduct")
    ResultVO listProduct(@RequestParam("page") Integer page,
                         @RequestParam("size") Integer size,
                         @RequestParam("status") Integer status,
                         @RequestParam("name") String name);


    @RequestMapping("/product/deleteProduct")
    ResultVO deleteProduct(@RequestParam("id") String id);



}
